package net.guerlab.sdk.anubis;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import net.guerlab.sdk.anubis.request.CarrierQueryRequest;
import net.guerlab.sdk.anubis.response.CarrierQueryResponse;

/**
 * 骑手查询 demo
 * 
 * @author guer
 *
 */
public class CarrierDemo {

    private static final Logger LOGGER = LoggerFactory.getLogger(AccessTokenDemo.class);

    /**
     * 查询骑手位置
     */
    @Test
    public void query() {
        CarrierQueryRequest request = new CarrierQueryRequest();
        request.setPartnerOrderCode("PztuJh5");

        CarrierQueryResponse response = DemoConfig.CLIENT.execute(request);

        LOGGER.debug("Carrier info : {}", response.getData());
    }
}
